package com.hospital.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("user_account")
public class User {
    @TableId(value = "uid", type = IdType.AUTO)
    private Integer uId;
    private String uName;
    private String uPw;
    private Integer uRole;
    private Integer uState;
    private Integer id;

    public User(String uName, String uPw, Integer uRole, Integer uState, Integer id) {
        this.uName = uName;
        this.uPw = uPw;
        this.uRole = uRole;
        this.uState = uState;
        this.id = id;
    }
}
